home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 5 / CD-ROM Today - The Disc (Issue 5)(November 1994).ISO / mac / DHA demo / Don Norman Folder / Don Norman demo / Don Norman demo.rsrc / OWdf_14548_mytest.def < prev    next >
Text File  |  1994-09-21  |  11KB  |  595 lines

  1. WINDOWPROPERTIES
  2. NAME:mytest
  3. CLOSESCRIPT:put @WindowName into wn┬
  4. set the donterase of window wn to winc(wn)
  5. USELOCALRECTS:true
  6. RECT:7,186,151,388
  7. COLLAPSEDRECT:5,60,155,59
  8. HSCROLL:false
  9. VSCROLL:false
  10. GROWICON:false
  11. SCROLL:0,0
  12. COLLAPSED:false
  13. WANTSIDLETIME:true
  14. ANIMATEDCURSORID:0
  15. DONTERASE:false
  16. NEVERSELECT:false
  17. USEPALETTEID:0
  18. CURSOR:128
  19. IDLESCRIPT:
  20. USERDATA:
  21. SELECTSCRIPT:
  22. PUTFILEDIALOGID:4500
  23. SAVEBEFORECLOSING:true
  24. ISCOLLAPSABLE:true
  25. LIMITWINDOWRECT:true
  26. SAVEMETHOD:Resource
  27. SAVECHANGES:true
  28.  
  29. PICTURE
  30. NAME:Picture1
  31. VISIBLE:true
  32. SCRIPT:
  33. CURSOR:128
  34. TYPE:Resource
  35. PATH:FindPic
  36. TOPLEFT:-1,0
  37. RECT:-1,0,332,202
  38. FITTOFRAME:false
  39. HASFRAME:false
  40. MASK:false
  41. SCROLL:0,0
  42. TRIMRECT:-1,-1,-1,-1
  43. USERDATA:
  44. INKMODE:srcCopy
  45. COLORTABLEID:0
  46. DITHER:false
  47.  
  48. PICTURE
  49. NAME:Dots
  50. VISIBLE:true
  51. SCRIPT:
  52. CURSOR:128
  53. TYPE:Resource
  54. PATH:Dots
  55. TOPLEFT:2,3
  56. RECT:2,3,13,55
  57. FITTOFRAME:false
  58. HASFRAME:false
  59. MASK:true
  60. SCROLL:0,0
  61. TRIMRECT:-1,-1,-1,-1
  62. USERDATA:
  63. INKMODE:srcCopy
  64. COLORTABLEID:0
  65. DITHER:false
  66.  
  67. PICTURE
  68. NAME:Dot
  69. VISIBLE:true
  70. SCRIPT:
  71. CURSOR:128
  72. TYPE:Resource
  73. PATH:Dot
  74. TOPLEFT:2,3
  75. RECT:2,3,12,14
  76. FITTOFRAME:false
  77. HASFRAME:false
  78. MASK:true
  79. SCROLL:0,0
  80. TRIMRECT:-1,-1,-1,-1
  81. USERDATA:
  82. INKMODE:srcCopy
  83. COLORTABLEID:0
  84. DITHER:false
  85.  
  86. TEXT
  87. NAME:DesignCount
  88. VISIBLE:true
  89. SCRIPT:
  90. CURSOR:128
  91. TYPE:Describe
  92. PATH:@StackPath:Sample Text:myTextFile
  93. RECT:111,3,144,17
  94. HASFRAME:false
  95. INSET:1
  96. TRANSPARENT:true
  97. EDITABLE:true
  98. SELECTABLE:true
  99. PAGE:0
  100. NUMBEROFPAGES:0
  101. SCROLL:0,0
  102. HASVSCROLL:false
  103. LINEHEIGHTFONTASCENT:-1,-1
  104. SELECTION:1,0
  105. DEFAULTFONT:Palatino
  106. DEFAULTSIZE:9
  107. DEFAULTSTYLE:plain
  108. TEXTDATA:
  109. USERDATA:
  110. MOVEMOUSETICKS:0
  111. ALIGNMENT:Right
  112. PAGEBREAKTABLE:
  113.  
  114. TEXT
  115. NAME:TurnSignalsCount
  116. VISIBLE:true
  117. SCRIPT:
  118. CURSOR:128
  119. TYPE:Describe
  120. PATH:@StackPath:Sample Text:myTextFile
  121. RECT:111,16,144,30
  122. HASFRAME:false
  123. INSET:1
  124. TRANSPARENT:true
  125. EDITABLE:true
  126. SELECTABLE:true
  127. PAGE:0
  128. NUMBEROFPAGES:0
  129. SCROLL:0,0
  130. HASVSCROLL:false
  131. LINEHEIGHTFONTASCENT:-1,-1
  132. SELECTION:1,0
  133. DEFAULTFONT:Palatino
  134. DEFAULTSIZE:9
  135. DEFAULTSTYLE:plain
  136. TEXTDATA:
  137. USERDATA:
  138. MOVEMOUSETICKS:0
  139. ALIGNMENT:Right
  140. PAGEBREAKTABLE:
  141.  
  142. TEXT
  143. NAME:ThingsCount
  144. VISIBLE:true
  145. SCRIPT:
  146. CURSOR:128
  147. TYPE:Describe
  148. PATH:@StackPath:Sample Text:myTextFile
  149. RECT:111,29,144,43
  150. HASFRAME:false
  151. INSET:1
  152. TRANSPARENT:true
  153. EDITABLE:true
  154. SELECTABLE:true
  155. PAGE:0
  156. NUMBEROFPAGES:0
  157. SCROLL:0,0
  158. HASVSCROLL:false
  159. LINEHEIGHTFONTASCENT:-1,-1
  160. SELECTION:1,0
  161. DEFAULTFONT:Palatino
  162. DEFAULTSIZE:9
  163. DEFAULTSTYLE:plain
  164. TEXTDATA:
  165. USERDATA:
  166. MOVEMOUSETICKS:0
  167. ALIGNMENT:Right
  168. PAGEBREAKTABLE:
  169.  
  170. TEXT
  171. NAME:SupplementCount
  172. VISIBLE:true
  173. SCRIPT:
  174. CURSOR:128
  175. TYPE:Describe
  176. PATH:@StackPath:Sample Text:myTextFile
  177. RECT:111,42,144,56
  178. HASFRAME:false
  179. INSET:1
  180. TRANSPARENT:true
  181. EDITABLE:true
  182. SELECTABLE:true
  183. PAGE:0
  184. NUMBEROFPAGES:0
  185. SCROLL:0,0
  186. HASVSCROLL:false
  187. LINEHEIGHTFONTASCENT:-1,-1
  188. SELECTION:1,0
  189. DEFAULTFONT:Palatino
  190. DEFAULTSIZE:9
  191. DEFAULTSTYLE:plain
  192. TEXTDATA:
  193. USERDATA:
  194. MOVEMOUSETICKS:0
  195. ALIGNMENT:Right
  196. PAGEBREAKTABLE:
  197.  
  198. TEXT
  199. NAME:DesignFinds
  200. VISIBLE:false
  201. SCRIPT:put @WindowName into wn┬
  202. put @ClickLine into cl┬
  203. put @Target into targ┬
  204. get the designfinds_textdata of window wn┬
  205. if cl <> ""┬
  206. then┬
  207. get line cl of it┬
  208. hiliteline wn,targ,cl┬
  209. if last char of it = "┬" then delete last char of it┬
  210. put the UserData of window @WindowName into thetext┬
  211. if it <> "" then gotofoundpage 2,it,thetext┬
  212. set the runhandler of window @WindowName to unhiliteline┬
  213. end if
  214. CURSOR:128
  215. TYPE:Describe
  216. PATH:@StackPath:Sample Text:myTextFile
  217. RECT:3,60,142,195
  218. HASFRAME:true
  219. INSET:1
  220. TRANSPARENT:false
  221. EDITABLE:false
  222. SELECTABLE:false
  223. PAGE:1
  224. NUMBEROFPAGES:0
  225. SCROLL:0,0
  226. HASVSCROLL:true
  227. LINEHEIGHTFONTASCENT:-1,-1
  228. SELECTION:1,0
  229. DEFAULTFONT:Geneva
  230. DEFAULTSIZE:9
  231. DEFAULTSTYLE:plain
  232. TEXTDATA:
  233. USERDATA:
  234. MOVEMOUSETICKS:0
  235. ALIGNMENT:Default
  236. PAGEBREAKTABLE:
  237.  
  238. TEXT
  239. NAME:TurnSignalsFinds
  240. VISIBLE:false
  241. SCRIPT:put @WindowName into wn┬
  242. put @ClickLine into cl┬
  243. put @Target into targ┬
  244. get the TurnSignalsFinds_textdata of window wn┬
  245. if cl <> ""┬
  246. then┬
  247. get line cl of it┬
  248. hiliteline wn,targ,cl┬
  249. if last char of it = "┬" then delete last char of it┬
  250. put the UserData of window @WindowName into thetext┬
  251. if it <> "" then gotofoundpage 3,it,thetext┬
  252. set the runhandler of window @WindowName to unhiliteline┬
  253. end if
  254. CURSOR:128
  255. TYPE:Describe
  256. PATH:@StackPath:Sample Text:myTextFile
  257. RECT:3,60,142,195
  258. HASFRAME:true
  259. INSET:1
  260. TRANSPARENT:false
  261. EDITABLE:false
  262. SELECTABLE:false
  263. PAGE:0
  264. NUMBEROFPAGES:0
  265. SCROLL:0,0
  266. HASVSCROLL:true
  267. LINEHEIGHTFONTASCENT:-1,-1
  268. SELECTION:1,0
  269. DEFAULTFONT:Geneva
  270. DEFAULTSIZE:9
  271. DEFAULTSTYLE:plain
  272. TEXTDATA:
  273. USERDATA:
  274. MOVEMOUSETICKS:0
  275. ALIGNMENT:Default
  276. PAGEBREAKTABLE:
  277.  
  278. TEXT
  279. NAME:ThingsFinds
  280. VISIBLE:false
  281. SCRIPT:put @WindowName into wn┬
  282. put @ClickLine into cl┬
  283. put @Target into targ┬
  284. get the ThingsFinds_textdata of window wn┬
  285. if cl <> ""┬
  286. then┬
  287. get line cl of it┬
  288. hiliteline wn,targ,cl┬
  289. if last char of it = "┬" then delete last char of it┬
  290. put the UserData of window @WindowName into thetext┬
  291. if it <> "" then gotofoundpage 4,it,thetext┬
  292. set the runhandler of window @WindowName to unhiliteline┬
  293. end if
  294. CURSOR:128
  295. TYPE:Describe
  296. PATH:@StackPath:Sample Text:myTextFile
  297. RECT:3,60,142,195
  298. HASFRAME:true
  299. INSET:1
  300. TRANSPARENT:false
  301. EDITABLE:false
  302. SELECTABLE:false
  303. PAGE:0
  304. NUMBEROFPAGES:0
  305. SCROLL:0,0
  306. HASVSCROLL:true
  307. LINEHEIGHTFONTASCENT:-1,-1
  308. SELECTION:1,0
  309. DEFAULTFONT:Geneva
  310. DEFAULTSIZE:9
  311. DEFAULTSTYLE:plain
  312. TEXTDATA:
  313. USERDATA:
  314. MOVEMOUSETICKS:0
  315. ALIGNMENT:Default
  316. PAGEBREAKTABLE:
  317.  
  318. TEXT
  319. NAME:SupplementFinds
  320. VISIBLE:false
  321. SCRIPT:put @WindowName into wn┬
  322. put @ClickLine into cl┬
  323. put @Target into targ┬
  324. get the SupplementFinds_textdata of window wn┬
  325. if cl <> ""┬
  326. then┬
  327. get line cl of it┬
  328. hiliteline wn,targ,cl┬
  329. if last char of it = "┬" then delete last char of it┬
  330. put the UserData of window @WindowName into thetext┬
  331. if it <> "" then gotofoundpage 5,it,thetext┬
  332. set the runhandler of window @WindowName to unhiliteline┬
  333. end if
  334. CURSOR:128
  335. TYPE:Describe
  336. PATH:@StackPath:Sample Text:myTextFile
  337. RECT:3,60,142,195
  338. HASFRAME:true
  339. INSET:1
  340. TRANSPARENT:false
  341. EDITABLE:false
  342. SELECTABLE:false
  343. PAGE:0
  344. NUMBEROFPAGES:0
  345. SCROLL:0,0
  346. HASVSCROLL:true
  347. LINEHEIGHTFONTASCENT:-1,-1
  348. SELECTION:1,0
  349. DEFAULTFONT:Geneva
  350. DEFAULTSIZE:9
  351. DEFAULTSTYLE:plain
  352. TEXTDATA:
  353. USERDATA:
  354. MOVEMOUSETICKS:0
  355. ALIGNMENT:Default
  356. PAGEBREAKTABLE:
  357.  
  358. TEXT
  359. NAME:DesignLabel
  360. VISIBLE:true
  361. SCRIPT:put @WindowName into wn┬
  362. put @Target into tn┬
  363. set lockscreen of window wn to true┬
  364. do "get the"&&tn&"_Rect of window"&"e&wn"e┬
  365. get "2,"& item 2 of it┬
  366. set the Dot_Topleft of window wn to it┬
  367. get tn┬
  368. delete last char of it┬
  369. delete last char of it┬
  370. delete last char of it┬
  371. delete last char of it┬
  372. delete last char of it┬
  373. put "Finds" after it┬
  374. set the Designfinds_visible of window wn to false┬
  375. set the TurnSignalsfinds_visible of window wn to false┬
  376. set the Thingsfinds_visible of window wn to false┬
  377. set the Supplementfinds_visible of window wn to false┬
  378. do "set the"&&it&"_visible of window"&"e&wn"e&&"to true"┬
  379. set lockscreen of window wn to false
  380. CURSOR:128
  381. TYPE:Describe
  382. PATH:@StackPath:Sample Text:myTextFile
  383. RECT:1,3,143,17
  384. HASFRAME:false
  385. INSET:1
  386. TRANSPARENT:true
  387. EDITABLE:false
  388. SELECTABLE:false
  389. PAGE:0
  390. NUMBEROFPAGES:1
  391. SCROLL:0,0
  392. HASVSCROLL:false
  393. LINEHEIGHTFONTASCENT:-1,-1
  394. SELECTION:19,18
  395. DEFAULTFONT:Palatino
  396. DEFAULTSIZE:9
  397. DEFAULTSTYLE:plain
  398. TEXTDATA:     In Design of╔
  399. USERDATA:
  400. MOVEMOUSETICKS:0
  401. ALIGNMENT:Default
  402. PAGEBREAKTABLE:1
  403.  
  404. TEXT
  405. NAME:TurnSignalsLabel
  406. VISIBLE:true
  407. SCRIPT:put @WindowName into wn┬
  408. put @Target into tn┬
  409. set lockscreen of window wn to true┬
  410. do "get the"&&tn&"_Rect of window"&"e&wn"e┬
  411. get "2,"& item 2 of it┬
  412. set the Dot_Topleft of window wn to it┬
  413. get tn┬
  414. delete last char of it┬
  415. delete last char of it┬
  416. delete last char of it┬
  417. delete last char of it┬
  418. delete last char of it┬
  419. put "Finds" after it┬
  420. set the Designfinds_visible of window wn to false┬
  421. set the TurnSignalsfinds_visible of window wn to false┬
  422. set the Thingsfinds_visible of window wn to false┬
  423. set the Supplementfinds_visible of window wn to false┬
  424. do "set the"&&it&"_visible of window"&"e&wn"e&&"to true"┬
  425. set lockscreen of window wn to false
  426. CURSOR:128
  427. TYPE:Describe
  428. PATH:@StackPath:Sample Text:myTextFile
  429. RECT:1,16,143,30
  430. HASFRAME:false
  431. INSET:1
  432. TRANSPARENT:true
  433. EDITABLE:false
  434. SELECTABLE:false
  435. PAGE:1
  436. NUMBEROFPAGES:1
  437. SCROLL:0,0
  438. HASVSCROLL:false
  439. LINEHEIGHTFONTASCENT:-1,-1
  440. SELECTION:22,21
  441. DEFAULTFONT:Palatino
  442. DEFAULTSIZE:9
  443. DEFAULTSTYLE:plain
  444. TEXTDATA:     In Turn Signals╔
  445. USERDATA:
  446. MOVEMOUSETICKS:0
  447. ALIGNMENT:Default
  448. PAGEBREAKTABLE:1
  449.  
  450. TEXT
  451. NAME:ThingsLabel
  452. VISIBLE:true
  453. SCRIPT:put @WindowName into wn┬
  454. put @Target into tn┬
  455. set lockscreen of window wn to true┬
  456. do "get the"&&tn&"_Rect of window"&"e&wn"e┬
  457. get "2,"& item 2 of it┬
  458. set the Dot_Topleft of window wn to it┬
  459. get tn┬
  460. delete last char of it┬
  461. delete last char of it┬
  462. delete last char of it┬
  463. delete last char of it┬
  464. delete last char of it┬
  465. put "Finds" after it┬
  466. set the Designfinds_visible of window wn to false┬
  467. set the TurnSignalsfinds_visible of window wn to false┬
  468. set the Thingsfinds_visible of window wn to false┬
  469. set the Supplementfinds_visible of window wn to false┬
  470. do "set the"&&it&"_visible of window"&"e&wn"e&&"to true"┬
  471. set lockscreen of window wn to false
  472. CURSOR:128
  473. TYPE:Describe
  474. PATH:@StackPath:Sample Text:myTextFile
  475. RECT:1,29,143,43
  476. HASFRAME:false
  477. INSET:1
  478. TRANSPARENT:true
  479. EDITABLE:false
  480. SELECTABLE:false
  481. PAGE:0
  482. NUMBEROFPAGES:1
  483. SCROLL:0,0
  484. HASVSCROLL:false
  485. LINEHEIGHTFONTASCENT:-1,-1
  486. SELECTION:21,20
  487. DEFAULTFONT:Palatino
  488. DEFAULTSIZE:9
  489. DEFAULTSTYLE:plain
  490. TEXTDATA:     In Things That╔
  491. USERDATA:
  492. MOVEMOUSETICKS:0
  493. ALIGNMENT:Default
  494. PAGEBREAKTABLE:1
  495.  
  496. TEXT
  497. NAME:SupplementLabel
  498. VISIBLE:true
  499. SCRIPT:put @WindowName into wn┬
  500. put @Target into tn┬
  501. set lockscreen of window wn to true┬
  502. do "get the"&&tn&"_Rect of window"&"e&wn"e┬
  503. get "2,"& item 2 of it┬
  504. set the Dot_Topleft of window wn to it┬
  505. get tn┬
  506. delete last char of it┬
  507. delete last char of it┬
  508. delete last char of it┬
  509. delete last char of it┬
  510. delete last char of it┬
  511. put "Finds" after it┬
  512. set the Designfinds_visible of window wn to false┬
  513. set the TurnSignalsfinds_visible of window wn to false┬
  514. set the Thingsfinds_visible of window wn to false┬
  515. set the Supplementfinds_visible of window wn to false┬
  516. do "set the"&&it&"_visible of window"&"e&wn"e&&"to true"┬
  517. set lockscreen of window wn to false
  518. CURSOR:128
  519. TYPE:Describe
  520. PATH:@StackPath:Sample Text:myTextFile
  521. RECT:1,42,143,56
  522. HASFRAME:false
  523. INSET:1
  524. TRANSPARENT:true
  525. EDITABLE:false
  526. SELECTABLE:false
  527. PAGE:1
  528. NUMBEROFPAGES:1
  529. SCROLL:0,0
  530. HASVSCROLL:false
  531. LINEHEIGHTFONTASCENT:-1,-1
  532. SELECTION:20,19
  533. DEFAULTFONT:Palatino
  534. DEFAULTSIZE:9
  535. DEFAULTSTYLE:plain
  536. TEXTDATA:     In Supplements
  537. USERDATA:
  538. MOVEMOUSETICKS:0
  539. ALIGNMENT:Default
  540. PAGEBREAKTABLE:1
  541.  
  542. TRANSPARENTBUTTON
  543. NAME:TurnSignalsGray
  544. VISIBLE:true
  545. SCRIPT:
  546. CURSOR:128
  547. RECT:1,16,143,29
  548. HASFRAME:false
  549. USERDATA:
  550. ISTRANSPARENT:false
  551. RGBFILLCOLOR:0,0,0
  552. INKMODE:subPin
  553.  
  554. TRANSPARENTBUTTON
  555. NAME:DesignGray
  556. VISIBLE:true
  557. SCRIPT:
  558. CURSOR:128
  559. RECT:1,3,143,16
  560. HASFRAME:false
  561. USERDATA:
  562. ISTRANSPARENT:false
  563. RGBFILLCOLOR:0,0,0
  564. INKMODE:subPin
  565.  
  566. TRANSPARENTBUTTON
  567. NAME:ThingsGray
  568. VISIBLE:true
  569. SCRIPT:
  570. CURSOR:128
  571. RECT:2,29,144,42
  572. HASFRAME:false
  573. USERDATA:
  574. ISTRANSPARENT:false
  575. RGBFILLCOLOR:0,0,0
  576. INKMODE:subPin
  577.  
  578. TRANSPARENTBUTTON
  579. NAME:SupplementGray
  580. VISIBLE:true
  581. SCRIPT:
  582. CURSOR:128
  583. RECT:2,42,144,56
  584. HASFRAME:false
  585. USERDATA:
  586. ISTRANSPARENT:false
  587. RGBFILLCOLOR:0,0,0
  588. INKMODE:subPin
  589.  
  590. HANDLER
  591. NAME:UnHiliteLine
  592. SCRIPT:get "set the"&&@Target&"_Selectable of window"&"e&@WindowName"e&&"to false"┬
  593. do it
  594.